guest is being debugged. The differences are handling of int3 exception
and missed pit timer injections. The Xen hypervisor should get back to
the normal mode when the gdb connection is closed. With the attached
patch gdbserver properly detaches from the guest when the gdb detaches
or quits.
Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
For the traditional remote protocol close the connection,
and re-open it at the top of the loop. */
- if (extended_protocol)
- {
- remote_close ();
+ detach_inferior ();
+ remote_close ();
+ if (extended_protocol)
exit (0);
- }
- else
- {
+ else
fprintf (stderr, "Remote side has terminated connection. "
"GDBserver will reopen the connection.\n");
- remote_close ();
- }
sigaction(SIGINT, &old_sigaction, NULL);
}
}